<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui" template="/template/template_dialog.xhtml"
                xmlns:s="http://sduept.security.el/func">
    <ui:define name="head">
        <link rel="stylesheet" href="/resources/plugins/datatables/dataTables.bootstrap.css" />
        <style>
        </style>
        <title>设备更新信息</title>
    </ui:define>
    <ui:define name="content">
        <div class='full-center-content-scroll-noheader'>
            <p:dataTable emptyMessage="无记录" value="#{cimEquipmentUpdateMessageController.last3DaysMsgList}" var="item"
                         style="width:100%;padding:10px;text-align:center">
                <p:column headerText="更新信息" >
                    <h:outputText value="#{item.name}" />
                </p:column>
                <p:column headerText="详细内容" style="width:30%">
                    <h:outputText value="#{item.content}" />
                </p:column>
                <p:column headerText="操作" >
                    <h:outputText value="#{cimEquipmentUpdateMessageController.getOperation(item.operation)}" />
                </p:column>
                <p:column headerText="更新时间">
                    <h:outputText value="#{item.updateTime}">
                        <f:convertDateTime pattern="yyyy-MM-dd HH:ss:mm" />
                    </h:outputText>
                </p:column>
                <p:column headerText="消息状态" >
                    <h:outputText value="#{item.status==0?'未确认':'已确认' }" />
                </p:column>
                <p:column headerText="确认人" >
                    <h:outputText value="#{item.checker}" />
                </p:column>
                <p:column headerText="确认时间" >
                    <h:outputText value="#{item.checkTime}">
                        <f:convertDateTime pattern="yyyy-MM-dd HH:ss:mm" />
                    </h:outputText>
                </p:column>
                <p:column headerText="是否需要告警" >
                    <h:outputText value="#{item.isAlarm==0?'否':'是'}" />
                </p:column>
            </p:dataTable>
        </div>
    </ui:define>
    <ui:define name="contentend">
        <script src="/resources/plugins/datatables/jquery.dataTables.js"></script>
        <script src="/resources/plugins/datatables/dataTables.bootstrap.min.js"></script>
        <script src="/resources/js/tables/mytable.js"></script>
    </ui:define>
</ui:composition>
